<template>
  <view class="add">
    <zk-cart type="2"></zk-cart>
  </view>
</template>
<script>
  export default {
    data () {
      return {
        viewModel: {
          name: '测试热源'
        },
        viewModel2: {}
      }
    },
    mounted () {
      this.init()
    },
    methods: {
      init () {
        uni.setNavigationBarTitle({
          title: '新的标题',
          titleNView: false
        })
        this.$api.vuexLocalSet('test343434', this.viewModel)
      }
    }
  }
</script>
<style lang="scss" scoped>
</style>
